<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>修改书籍</h1>
<form method="post" th:action="@{/book/updateBookInfo}">
  <input type="hidden" th:value="${bookInfo.id}" name="id">
  <tr>
    <td>书名</td>
    <td><input type="text" th:value="${bookInfo.name}" name="name"></td><br>
  </tr>
  <tr>
    <td>价格</td>
    <td><input type="text" th:value="${bookInfo.price}" name="price"></td><br>
  </tr>
  <tr>
    <td>分类</td>
    <td><input type="text" th:value="${bookInfo.category}" name="category"></td><br>
  </tr>
  <tr>
    <td>库存</td>
    <td><input type="text" th:value="${bookInfo.pnum}" name="pnum"></td><br>
  </tr>
  <tr>
    <td>描述</td>
    <td><input type="text" th:value="${bookInfo.description}" name="description"></td><br>
  </tr>
  <tr>
    <td>作者</td>
    <td><input type="text" th:value="${bookInfo.author}" name="author"></td><br>
  </tr>
  <tr>
    <td>已售</td>
    <td><input type="text" th:value="${bookInfo.sales}" name="sales"></td><br>
  </tr>

  <input type="submit" value="修改">
</form>
</body>
</html>